package com.enterprise.projectManager.rope;

import com.enterprise.projectManager.dto.LoginRequest;
import com.enterprise.projectManager.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface UserRope extends JpaRepository<User,String> {
    Optional<User> findByAccount(String account);
    User findByAccountAndPassword(String account,String password);
    Boolean existsByAccount(String account);
}
